import { reactive } from 'vue';
<template>
   我是子组件
   {{ title }}
   <button @click="handleClick()">子给父传</button>
</template>

<script setup lang='ts'>
import { reactive } from 'vue';

type Props = {
    title:number[]
}

// 默认值
withDefaults(defineProps<Props>(),{
    title:()=> []
}) 



const emit = defineEmits(['handleClick'])
const list = reactive<number[]>([6,6,6,6])
const handleClick = ( ) => {
    emit('handleClick',list)
}

defineExpose({
    list
})

</script>

<style lang='scss' scoped>

</style>
